import api from './apis';
import { post, get, postFile, postJson, postJson_cydn, postJson_face } from '../request';

export function getCorpNames (params) {
  return postJson(api.getCorpNames, params, true);
}

export function getOrderedBanks (params) {
  return postJson(api.getOrderedBanks, params, true);
}

export function faceRecognition (params) {
  return postJson(api.faceRecognition, params, true);
}

export function generateAuthorization (params) {
  return postJson(api.generateAuthorization, params, true);
}

export function insertMes (params) {
  return postJson(api.insertMes, params, true);
}

export function getByID (params) {
  return postJson_cydn(api.getByID, params, true);
}
export function faceRecognition_face (params) {
  return postJson_face(api.faceRecognition_face, params, true);
}
export function selectAuthDeptList (params) {
  return postJson_face(api.selectAuthDeptList, params, true);
}
export function generateAuthorization_zx (params) {
  return postJson_face(api.generateAuthorization_zx, params, true);
}
export function updateRecordById (params) {
  return postJson_cydn(api.updateRecordById, params, true);
}

export default {
  getCorpNames,
  getOrderedBanks,
  faceRecognition,
  generateAuthorization,
  insertMes,
  getByID,
  faceRecognition_face,
  selectAuthDeptList,
  updateRecordById,
  generateAuthorization_zx
};
